FROM o2o-jdk-centos:v1
ARG JAR_FILE
ADD ${JAR_FILE} /app.jar
#ADD ["target/docker-compose-eureka-v1.0.0.jar", "app.jar"]
EXPOSE 1234
ENV JAVA_OPTS="-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8787,suspend=n"
RUN sh -c 'touch /app.jar'
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=docker -jar /app.jar" ]